package cn.iocoder.yudao.module.crm.controller.admin.tasktype.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - CRM 任务单类型新增/修改 Request VO")
@Data
public class TaskTypeSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31190")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10901")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @Schema(description = "描述", example = "你猜")
    private String description;

}